import {ui} from "../../ui/layaMaxUI";
import PlayerData from "../data/PlayerData";
export default class NoticeDialog extends ui.NoticeUI{
    onEnable(){
        this.closeBtn.once(Laya.Event.CLICK,this,this.close);
        this.okBtn.once(Laya.Event.CLICK,this,this.close);
    }

    onOpened(param: any): void {
        this.contentTxt.text = param.value;
        PlayerData.getIns().noticeId=param.id;
        PlayerData.getIns().save();
    }
}